<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/" xmlns:p="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>用户信息列表展示页</title>
    <!-- 关键代码 -->
    <script th:src="@{/webjars/jquery/3.2.1/dist/jquery.min.js}"></script>
    <script th:src="@{/webjars/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.min.css}" />
    <link type="text/css" rel="stylesheet" th:href="@{/static/css/style.css}">
</head>
<body>
<table border="1" class="table table-striped text-center">
    <tr>
        <th>No.</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>
        <th>生日</th>
        <th>性别</th>
    </tr>
    <tr th:each="stu, stuu : ${students}">
        <td th:text="${stu.stuId}"></td>
        <!--        <td th:text="${user.uid}"></td>-->
        <td th:text="${stu.stuName}"></td>
        <td th:text="${stu.stuAge}"></td>
        <td th:text="${stu.stuSex}"></td>
        <td th:text="${stu.stuBir}"></td>
        <td>
            <span th:if="${stu.stuSex} == 男">男</span>
            <span th:if="${stu.stuSex}  == 女">女</span>
        </td>

    </tr>
</table>
</body>
</html>
